Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.09 KB

MUIPointSizeToLogicalUnit.rst

File metadata and controls

36 lines (19 loc) · 1.09 KB

MUIPointSizeToLogicalUnit

MUIPointSizeToLogicalUnit, hWin:MUIWND<MUIWND>, PointSize:MUIVALUE<MUIVALUE>

Convert font point size eg 12 to logical unit size for use with CreateFont or CreateFontIndirect

Parameters

  • [in] hWin - handle to window to use dc for converting the point size to logical size
  • [in] PointSize - a value representing the point size to convert

Return

Returns the font height for the point size specified

Example

LOCAL dwFontHeight:DWORD

MUIPointSizeToLogicalUnit, hWin, 12
mov dwFontHeight, eax

Invoke CreateFont, dwFontHeight, ...

See Also

CreateFont, CreateFontIndirect